package com.googlecode.gingerman.world;

import java.util.List;
import com.googlecode.gingerman.world.geometry.Coordinates;
import com.googlecode.gingerman.world.geometry.Rectangle;
import ui.Paintable;

public class Wall implements Paintable{
	
	private double x, y, angle, width, heigth; // x,y - center coordinates. a,b - sides of the rectangle
	private Rectangle rectangle;
	
	public Wall(double x, double y, double width, double heigth ,double angle){
		this.x=x;
		this.y=y;
		this.width=width;
		this.heigth=heigth;
		this.angle=angle;
		Coordinates coordinates=new Coordinates(x,y);
		rectangle=new Rectangle(coordinates,width,heigth,angle);
	}
	
	public Rectangle getRectangle() {
		return rectangle;
	}
	
	public double getWidth(){
		return width;
	}
	
	public double getHeigth(){
		return heigth;
	}

	public double getAngle() {
		return angle;
	}

	public List<Paintable> getPaintableChildren() {
		return null;
	}

	public String getView() {
		return "wall";
	}

	public double getX() {
		return x;
	}

	public double getY() {
		return y;
	}
	
}
